<?php
require_once dirname(__FILE__) . '/Zend_View_Smarty.php';

if ( defined(APPLICATION_PATH) ) {
	echo APPLICATION_PATH . ':::';
	exit('no define APPLICATION_PATH');
}
$view = new Zend_View_Smarty(APPLICATIOIN_PATH . '/views/scripts');
$viewRenderer =  Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
$viewRenderer->setView($view)
             ->setViewBasePathSpec($view->_smarty->template_dir)
             ->setViewScriptPathSpec(':controller/:action.:suffix')
             ->setViewScriptPathNoControllerSpec(':action.:suffix')
             ->setViewSuffix('html');
$view->getEngine()->compile_dir = APPLICATION_PATH . '/view/data/templates_c';